package com.zang.blogz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zang.blogz.entity.PhotoAlbum;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zang.blogz.model.output.PhotoVO;
import com.zang.blogz.model.output.admin.AdminPhotoAlbumVO;
import com.zang.blogz.result.Result;

/**
 * <p>
 * 相册 服务类
 * </p>
 *
 * @author 朵橙i
 * @since 2022-06-17
 */
public interface PhotoAlbumService extends IService<PhotoAlbum> {

    /**
     * 根据相册id查询相册详细内容
     * @param albumId
     * @return
     */
    PhotoVO photoList(Integer albumId);

    /**
     * 查看后台相册列表
     * @param page
     * @return
     */
    IPage<AdminPhotoAlbumVO> photoAlbumListAdmin(Page<AdminPhotoAlbumVO> page);

    /**
     * 添加或修改相册
     * @param photoAlbum
     * @return
     */
    Result<PhotoAlbum> saveOrUpdatePhotoAlbum(PhotoAlbum photoAlbum);

    /**
     * 删除相册
     * @param photoAlbumId 相册id
     * @return
     */
    Result<String> deletePhotoAlbum(Integer photoAlbumId);
}
